package com.easybuy.mapper;

import com.easybuy.bean.EasybuyUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EasybuyUserMapper {

    //分页查询
    List<EasybuyUser> listUserByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);


    //保存实体化到eb_user表
    int save(EasybuyUser easybuyUser);

    //通过主键更新eb_user表
    Integer updateByPK(EasybuyUser easybuyUser);

    //通过主键查询eb_user表数据
    EasybuyUser selectByPK(EasybuyUser easybuyUser);

    Integer deleteByPK(@Param("euUserId") String euUserId);

    int countAll();

}
